package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Destination;
import cn.wolfcode.luowowo.domain.Region;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface RegionRepository extends MongoRepository<Region,String> {

    /**
     * 查看所有热门区域,并按照ASC正序排序
     * @param stateHot
     * @return
     */
    List<Region> findByIshotOrderBySequenceAsc(int stateHot);


}
